package kr.co.hk.date;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class DatePlaceMain extends TabActivity {

	final String url1 = "http://kr.gugi.yahoo.com/stories-list/2/&situation=4"; // 맛집_데이트
	final String url2 = "http://kr.gugi.yahoo.com/stories-list/3/&situation=4"; // 여행_데이트
	final String url3 = "http://kr.gugi.yahoo.com/stories-list/4/&situation=4"; // 이색_데이트
	final String url4 = "http://kr.gugi.yahoo.com/gugigirls-all-column/?sort=&fields=tc&p=%eb%8d%b0%ec%9d%b4%ed%8a%b8%eb%aa%85%ec%86%8c&count=5"; // 데이트명소

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// gubun false : 맛집, 여행, 이색 true : 데이트 명소
		TabHost mTabHost = getTabHost();

		Intent foodIntent = new Intent().setClass(this, DatePlaceList.class);
		foodIntent.putExtra("url", url1);
		foodIntent.putExtra("gubun", false);

		Intent tourIntent = new Intent().setClass(this, DatePlaceList.class);
		tourIntent.putExtra("url", url2);
		tourIntent.putExtra("gubun", false);

		Intent esaxIntent = new Intent().setClass(this, DatePlaceList.class);
		esaxIntent.putExtra("url", url3);
		esaxIntent.putExtra("gubun", false);

		Intent mIntent = new Intent().setClass(this, DatePlaceList.class);
		mIntent.putExtra("url", url4);
		mIntent.putExtra("gubun", true);

		
		
		mTabHost.addTab(mTabHost.newTabSpec("tab1").setIndicator("맛집")
				.setContent(foodIntent));
		mTabHost.addTab(mTabHost.newTabSpec("tab2").setIndicator("여행")
				.setContent(tourIntent));
		mTabHost.addTab(mTabHost.newTabSpec("tab3").setIndicator("이색")
				.setContent(esaxIntent));
		mTabHost.addTab(mTabHost.newTabSpec("tab4").setIndicator("명소")
				.setContent(mIntent));
		
		mTabHost.setCurrentTab(0);
	}

}
